package cn.edu.bjfu.practice.practice.teacher.dao;

import cn.edu.bjfu.practice.practice.teacher.pojo.domain.Project;
import cn.edu.bjfu.practice.practice.teacher.pojo.vo.CourseProjectView;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ProjectDao extends BaseMapper<Project> {

    /**
     * 获取该课程下项目信息
     * @param course_id
     * @return
     */
    public List<CourseProjectView> getProjectByCourse(Integer course_id);

    /**
     * 获取该项目课程id
     * @param project_id
     * @return
     */
    public Integer getCourseIdByPro(Integer project_id);
}
